package com.ruoyi.system.domain.ingredients;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 辅料出入库明细对象 part_ingredients_detail
 * 
 * @author ljx
 * @date 2020-07-01
 */
public class PartIngredientsDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 辅料表id */
    @Excel(name = "辅料表id")
    private Long partId;

    /** 出库入库状态（1出库，2入库） */
    @Excel(name = "出库入库状态", readConverterExp = "1=出库，2入库")
    private Integer type;

    /** 出入库数量 */
    @Excel(name = "出入库数量")
    private Long changeValue;

    @Excel(name = "领取人")
    private String receiver;

    /** 创建时间 */
    @Excel(name = "领取时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date receiveTimr;

    private String startTime;
    private String endTime;
    //库存
    private Long inventory;

    public Long getInventory() {
        return inventory;
    }

    public void setInventory(Long inventory) {
        this.inventory = inventory;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public Date getReceiveTimr() {
        return receiveTimr;
    }

    public void setReceiveTimr(Date receiveTimr) {
        this.receiveTimr = receiveTimr;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPartId(Long partId) 
    {
        this.partId = partId;
    }

    public Long getPartId() 
    {
        return partId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setChangeValue(Long changeValue) 
    {
        this.changeValue = changeValue;
    }

    public Long getChangeValue() 
    {
        return changeValue;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("partId", getPartId())
            .append("type", getType())
            .append("changeValue", getChangeValue())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .toString();
    }
}
